<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv=Content-Type content="text/html;charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!--    <meta http-equiv=Content-Type content="text/html;charset=UTF-8">-->
<!--    <meta http-equiv="X-UA-Compatible" content="IE=edge">-->
    <link rel="stylesheet" href="/admin/assets/css/layui.css">
    <link rel="stylesheet" href="/admin/assets/css/view.css"/>
    <script src="/admin/assets/echarts.min.js"></script>
    <script src="/admin/qrcode/jquery2.1.4.js"></script>
    <title></title>
</head>
<body class="layui-view-body">
    <div class="layui-content">
        <div class="layui-row layui-col-space20">
            <div class="layui-col-sm6 layui-col-md6">
                <div class="layui-card">
                    <div class="layui-card-body chart-card">
                        <div class="chart-header">
                            <div class="metawrap">
                                <div class="meta">
                                    <span>总预约数</span>
                                </div>
                                <div class="total" id="data2_size">-</div>
                            </div>
                        </div>
                        <div class="chart-body">
                            <div class="contentwrap">
                            </div>
                        </div>
                        <div class="chart-footer">
                            <div class="field">
                                <span>日预约数</span>
                                <span id="data2_day">-</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-sm6 layui-col-md6">
                <div class="layui-card">
                    <div class="layui-card-body chart-card">
                        <div class="chart-header">
                            <div class="metawrap">
                                <div class="meta">
                                    <span>总汽车数量</span>
                                </div>
                                <div id="data1_size" class="total">-</div>
                            </div>
                        </div>
                        <div class="chart-body">
                            <div class="contentwrap">
                            </div>
                        </div>
                        <div class="chart-footer">
                            <div class="field">
                                <span>汽车类型</span>
                                <span id="data1_day"></span>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <script charset="UTF-8" src="/admin/assets/layui.all.js"></script>
    <script charset="UTF-8">
     var element = layui.element;
    </script>
    <script charset="UTF-8">
        $(function(){
            $.ajax({
                type: "GET",
                url: "/Spencer/AutoSize",
                data: "",
                dataType:"json",
                success: function(vo){
                    $("#data1_size").html(vo.autoSize);
                    $("#data1_day").html(vo.typeSize);
                }
            })
            $.ajax({
                type: "GET",
                url: "/Spencer/OrderSize",
                data: "",
                dataType:"json",
                success: function(vo){
                    $("#data2_size").html(vo.data_size);
                    $("#data2_day").html(vo.data_new);
                }
            })
        })
    </script>
</body>
</html>